<?php
namespace app\admin\validate;

use think\Validate;

class Game extends Validate
{
    protected $rule = [
        'gameName'  => 'require|max:100',
        'gameIntegral' => 'require|number',
        'sort' => 'require|number'
    ];

    protected $message = [
        'gameName.require'  => '请选择游戏名称',
        'gameName.max'  => '游戏名称过长',
        'gameIntegral.require' => '请输入消耗积分',
        'gameIntegral.number' => '消耗积分只能为数字',
        'sort.require' => '请输入排序',
        'sort.number'  => '排序只能填写数字'
    ];
}